package cool.tsy.emos.wx.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author: hongxuan.wang
 * @date: Created in 2021/9/24 15:10
 * @description:
 * @mail: 1443424326@qq.com
 */
@ApiModel
@Data
public class TestSayHelloForm {

    @NotBlank(message = "名字不能为空")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{2,15}$", message = "姓名只能以汉字形式，长度在2~15之间")
    @ApiModelProperty("姓名")
    private String name;
}
